package com.demo.controller;

import com.demo.pojo.Goods;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/goods")
public class FormatterController {

    @RequestMapping("/addGoods.do")
    public String myConverter(Goods goods, Model model){
        model.addAttribute("goods",goods);
        return "showGoodsInfo";
    }
}
